using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

namespace IReaper.Statues
{
    public partial class DownloadFileWork : CourseFileWorkBase
    {
        public DownloadFileWork()
        {
            InitializeComponent();
        }

        public DownloadFileWork(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }

        protected override void AfterEnterLoop()
        {
            IReaper.Running.DownloadEngine.EndAddCourseFileData();
        }

        protected override void TaskUnitEntry(IReaper.FileData.CourseFileData data)
        {
            IReaper.Running.DownloadEngine.AddCourseFileData(data);
        }
        
    }
}
